﻿@page "/system/apidoc"
@attribute [ReuseTabsPage(Title = "接口文档")]

<GridContent>
    <iframe style="width:100%;height:1080px" src="/swagger/index.html" frameborder="0"></iframe>
</GridContent>

@inject NavigationManager NavigationManager;
@inject IJSRuntime IJSRuntime;

@code{
    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {
            await NavigationManager.RedirectLogin(IJSRuntime);
        }
    }
}